﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//New and needed
using IM.Domain.TransManager;
using IM.Naive.Repository;

namespace IM.Naive.TransManager
{
    public class TransManagerEntityStoreFactory: ITransFactory
    {
        private TransManagerEntityStore TransManager;

        #region ITransFactory Members

        public ITransManager CreateManager()
        {
            if (TransManager != null)
            {
                return TransManager;
            }

            TransManager = new TransManagerEntityStore {RepositoryLocator = new RepositoryLocatorEntityStore()};
            return TransManager;

        }

        #endregion
    }
}
